/*
import javafx.embed.swing.JFXPanel;
import javafx.scene.Group;
import javafx.scene.Scene;
import javafx.scene.media.Media;
import javafx.scene.media.MediaPlayer;
import javafx.scene.media.MediaView;
import javafx.scene.paint.Color;*/

/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
/**
 *
 * @author Ahmed
 */
public class FXVideoPlayer {

  /*  public static void initFX(JFXPanel fxPanel, String url) {
        // This method is invoked on the JavaFX thread
        Scene scene = createScene(url);
        fxPanel.setScene(scene);
    }

    private static Scene createScene(String url) {
        Group root = new Group();
        Scene scene = new Scene(root, Color.ALICEBLUE);
        Media media = new Media(url);
        MediaPlayer mediaPlayer = new MediaPlayer(media);
        mediaPlayer.setAutoPlay(true);
        MediaView mediaView = new MediaView(mediaPlayer);
        root.getChildren().add(mediaView);

        return (scene);
    }*/
}
